<?php
/**
 * Zender
 *
 * @category   Zender
 * @package    Zender
 * @subpackage Zender_Core
 * @author ximarx
 * @version 0.0.0
 */

/**
 * Class to store and retrieve the version of Zender
 *
 * @category   Zender
 * @package    Zender
 * @subpackage Zender_Core
 * @author ximarx
 * @version 0.0.0
 */
final class Zender_Version
{
    /**
     * Zender version identification - see compareVersion()
     */
    const VERSION = '0.0.0';
    const STATE = 'prototype';
    const ZEND_VERSION = Zend_Version::VERSION;
    const PEAR_VERSION = '';

    /**
     * Compare the specified Zender version string $version
     * with the current Zender_Version::VERSION of the Zender
     *
     * @param  string  $version  A version string (e.g. "0.7.1").
     * @return boolean           -1 if the $version is older,
     *                           0 if they are the same,
     *                           and +1 if $version is newer.
     *
     */
    public static function compareVersion($version)
    {
        return version_compare($version, self::VERSION);
    }
}
